From: APTX Date: Thu, 25 Apr 2013 01:55:48 +0000 (+0200) Subject: The results of getFileLocationBatch should be ordered. X-Git-Url: https://gitweb.tyo.aptx.org/?a=commitdiff_plain;h=0fa3739de2c4cec3ab3a9f186021f9aae0c12ace;p=localmylist.git The results of getFileLocationBatch should be ordered. --- diff --git a/localmylist/database.cpp b/localmylist/database.cpp index 6e6a97e..0bab851 100644 --- a/localmylist/database.cpp +++ b/localmylist/database.cpp @@ -357,6 +357,7 @@ QList Database::getFileLocationBatch(int startLocationId, int limi " FROM file_location fl " " WHERE location_id >= :startLocationId " " AND host_id = :hostId " + " ORDER BY location_id ASC " " LIMIT :limit " ).arg(fileLocationFields()));