Switch to unified view

a/src/query/docseqdb.cpp b/src/query/docseqdb.cpp
...
...
127
{
127
{
128
    LOGDEB(("DOcSequenceDb::title()\n"));
128
    LOGDEB(("DOcSequenceDb::title()\n"));
129
    return m_filt ? DocSequence::title() + " (filtered)" : DocSequence::title();
129
    return m_filt ? DocSequence::title() + " (filtered)" : DocSequence::title();
130
}
130
}
131
131
132
// TBDone
133
bool DocSequenceDb::setSortSpec(DocSeqSortSpec &sortspec) 
132
bool DocSequenceDb::setSortSpec(DocSeqSortSpec &sortspec) 
134
{
133
{
135
    return true;
134
    if (sortspec.isNotNull()) {
135
  bool ascending = false;
136
  for (unsigned int i = 0; i < sortspec.crits.size(); i++) {
137
      switch (sortspec.crits[i]) {
138
      case DocSeqSortSpec::RCLFLD_MTIME:
139
      ascending = !sortspec.dirs[i];
140
      break;
141
      default:
142
      break;
143
      }
144
  }
145
  m_q->setSortBy("mtime", ascending);
146
    } else {
147
  m_q->setSortBy(string(), true);
148
    }
149
    return m_q->setQuery(m_fsdata);
136
}
150
}
151