chuni: sort user activity response

This commit is contained in:
e76cd2ec3a63f11710dc9fa0bc5b66176521af0a 2020-08-05 02:42:20 -07:00 committed by Tau
parent 9b22318934
commit 1d8fd582c9

View File

@ -28,7 +28,8 @@ export class SqlUserActivityRepository implements UserActivityRepository {
.select("*")
.from("cm_user_activity")
.where("profile_id", profileId)
.where("kind", kind);
.where("kind", kind)
.orderBy("sort_number DESC");
const rows = await this._txn.fetchRows(stmt);