Some methods of typescript are not supported in Redmii phones (sort,filter etc)

I am working on ion-searchbar, I want searched data to be in sorted order and I got it too.
It works fine in all mobile excepts Redmii devices.
Any help, please let me know.

GetSortOrder(prop) {
return function(a, b) {
if (a[prop] > b[prop]) {
return 1;
else if (a[prop] < b[prop]) {
return -1;
return 0;