fix WI sorting error

c9acea8522b62e4d45775f9b05f6da4076f5d477

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +3 -3Showing whitespace changes
public/scripts/world-info.js+3 -3
@@ -1648,9 +1648,9 @@ function getWIElement(name) {
16481648 */
16491649export function sortWorldInfoEntries(data, { customSort = null } = {}) {
16501650 const option = $('#world_info_sort_order').find(':selected');
16511651 const sortField = customSort?.sortField ?? option.data('field');
16521652 const sortOrder = customSort?.sortOrder ?? option.data('order');
16531653 const sortRule = customSort?.sortRule ?? option.data('rule');
16541654 const orderSign = sortOrder === 'asc' ? 1 : -1;
16551655
16561656 if (!data.length) return data;