diff --git a/lib/KTable/useSorting/index.js b/lib/KTable/useSorting/index.js index 3d90d9f0f..ebe80ba52 100644 --- a/lib/KTable/useSorting/index.js +++ b/lib/KTable/useSorting/index.js @@ -40,13 +40,19 @@ export default function useSorting(headers, rows, defaultSort, disableBuiltinSor ); } - return _.orderBy(rows.value, [row => { - const value = row[sortKey.value]; - if (typeof value === 'string') { - return value.toString().toLocaleLowerCase(); - } - return value; - }], [sortOrder.value]); + return _.orderBy( + rows.value, + [ + row => { + const value = row[sortKey.value]; + if (typeof value === 'string') { + return value.toString().toLocaleLowerCase(); + } + return value; + }, + ], + [sortOrder.value] + ); }); /** @@ -91,4 +97,4 @@ export default function useSorting(headers, rows, defaultSort, disableBuiltinSor handleSort, getAriaSort, }; -} \ No newline at end of file +}