mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix(database): order categories by name in database query for consistency
This commit is contained in:
1 parent
cf6c5b4317
commit
74a5459735
1 file changed
+1
-1
@@ -176,7 +176,7 @@ export class DatabaseService {
|
||||
): Promise<XCategoryFromDb[]> {
|
||||
const db = await this.getConnection();
|
||||
return await db.select<XCategoryFromDb[]>(
|
||||
'SELECT * FROM categories WHERE playlist_id = ? AND type = ?',
|
||||
'SELECT * FROM categories WHERE playlist_id = ? AND type = ? ORDER BY name COLLATE NOCASE',
|
||||
[playlistId, type]
|
||||
);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user