1
0
Fork 0
mirror of https://github.com/KingDuckZ/dindexer.git synced 2025-07-03 14:14:11 +00:00

List directories first in the output of ls.

This commit is contained in:
King_DuckZ 2016-01-29 23:30:59 +00:00
parent b422d5efbd
commit c5824c36bd

View file

@ -137,7 +137,7 @@ namespace din {
"\"level\"=$1 " <<
"AND \"group_id\"=$2 " <<
"AND str_begins_with(\"path\", COALESCE($3, '')) " <<
"ORDER BY \"path\" ASC " <<
"ORDER BY \"is_directory\" DESC, \"path\" ASC " <<
"LIMIT " << g_files_query_limit << ';';
auto& conn = get_conn();