Skip to content

Commit 6852a2c

Browse files
committed
Fix: updated the sorting funciton to make sure it would properly sort strings
1 parent e4a5f01 commit 6852a2c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Dist/WebflowOnly/CMSFilter.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,9 @@ class CMSFilter {
236236
else if (Date.parse(aValue) && Date.parse(bValue)) {
237237
aValue = new Date(aValue);
238238
bValue = new Date(bValue);
239+
} else {
240+
aValue = aValue.toString().toLowerCase();
241+
bValue = bValue.toString().toLowerCase();
239242
}
240243

241244
if (order === 'asc') {

0 commit comments

Comments
 (0)