Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 84751

Ordering numbers with Query object

$
0
0
Hi,

The code you provided should work fine.

Generally, the sorting functionality provides correct results when the field is of type Number. The behavior you observed is not correct. It is probable that there are items whose Price field is not a number but a string. Could you please check for such items?

Even though, the Price field is chosen to be of type Number, Backend services does not enforce any validation for the type of the value. Currently, these types are used for UI purposes only.

More information about data and data types could be found here: http://docs.telerik.com/platform/backend-services/javascript/data/introduction

I hope this helps.

Regards,
Denitsa
Telerik by Progress
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 

Viewing all articles
Browse latest Browse all 84751

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>