moukbel
7 months ago
40
3
Vue

Array OrderBy work only for first letter!

Posted 7 months ago by moukbel

hi, I'm trying to make a sorting table, everything works well except when the number gets higher than 9. the orderd will be somthing like this :

1
1
12
17
5
6
7
8
85
9

instead of 

1
1
5
6
7
8
9
12
16
85

computed: {
         
            orderedProducts: function () {
                const vm = this;
                return _.orderBy( vm.filterby , [vm.sortKey], ['asc'])
            },
}

Please sign in or create an account to participate in this conversation.