Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

JSON sort and search results web part

$
0
0

I am using the below JSON sort string to order results by name (Z - A). For some reason I am noticing that few results are sorted in descending order before the results with "Z" start. For example, there are results that are first sorted by Z to A and then the actual results start showing up which are correctly sorted from Z to A.

{"name":"Name Z-A","sorts":[{"p":"Name1","d":1}]}

I tried identifying if those subset of results have any special/hidden characters using Search Query Tool but there are none. I also confirmed in the database that they do not have any special characters. So, why are these subset of results sorted within themselves before the actual results start?

S5, S4, S3, S2, S1, Z, Y, X, .....

These S* results do not have any special characters...


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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