You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/07/27 09:28:50 UTC
[cloudstack] branch 4.15 updated: ui: Fix comparator for boolean
(#5246)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch 4.15
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.15 by this push:
new a436869 ui: Fix comparator for boolean (#5246)
a436869 is described below
commit a436869212f158af741cf9b8966977ff8f577548
Author: davidjumani <dj...@gmail.com>
AuthorDate: Tue Jul 27 14:58:18 2021 +0530
ui: Fix comparator for boolean (#5246)
---
ui/src/utils/sort.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/utils/sort.js b/ui/src/utils/sort.js
index 4934c88..b2f3d54 100644
--- a/ui/src/utils/sort.js
+++ b/ui/src/utils/sort.js
@@ -23,7 +23,7 @@ function filterNumber (value) {
}
function stringComparator (a, b) {
- return a.localeCompare(b)
+ return a.toString().localeCompare(b.toString())
}
function numericComparator (a, b) {