summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkarsh Simha <akarsh@kde.org>2016-08-17 05:11:33 (GMT)
committerAkarsh Simha <akarsh@kde.org>2016-08-17 05:11:33 (GMT)
commitb25452cf0871ec16a149ae216f2c51f9a93f9257 (patch)
tree6b2eb558f43bafad417802f9335b2465f341c686
parent08b2dd17b31a44501bf37a94328a57f48ce53dcb (diff)
Sort custom catalog names in ascending order. Makes them easier to find.
-rw-r--r--datahandlers/catalogdb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/datahandlers/catalogdb.cpp b/datahandlers/catalogdb.cpp
index 75818e8..c6be6fd 100644
--- a/datahandlers/catalogdb.cpp
+++ b/datahandlers/catalogdb.cpp
@@ -123,6 +123,7 @@ void CatalogDB::RefreshCatalogList() {
skydb_.open();
QSqlTableModel catalog(0, skydb_);
catalog.setTable("Catalog");
+ catalog.setSort( 0, Qt::AscendingOrder );
catalog.select();
for (int i = 0; i < catalog.rowCount(); ++i) {