n->ohash = COL("ohash");
n->mds = COL("mds");
n->omds = COL("omds");
- n->pkglist = COL("pkglist");
+ n->pkglist = COL("pkgid");
if (n->ftype == 'r') {
n->hash = COL("hash");
}
if (conf->reverse) {
sqlite3_str_appendall(s," order by length(path) desc, path desc");
+ } else {
+ sqlite3_str_appendall(s," order by length(path), path");
}
sql = sqlite3_str_value(s);