feat(furni-editor): add sortField/sortDir to search composer

Append optional sort field + direction to FurniEditorSearchComposer so
the server can order the full result set (not just the visible page).
Defaults id/asc keep existing callers working.
This commit is contained in:
simoleo89
2026-06-06 15:08:46 +02:00
parent 751da35ce4
commit 7da07aa1d5
@@ -4,9 +4,9 @@ export class FurniEditorSearchComposer implements IMessageComposer<ConstructorPa
{ {
private _data: ConstructorParameters<typeof FurniEditorSearchComposer>; private _data: ConstructorParameters<typeof FurniEditorSearchComposer>;
constructor(query: string, type: string, page: number) constructor(query: string, type: string, page: number, sortField: string = 'id', sortDir: string = 'asc')
{ {
this._data = [ query, type, page ]; this._data = [ query, type, page, sortField, sortDir ];
} }
dispose(): void dispose(): void