Hi Anuj, As the field type is String, lexicographical sorting is done, not numeric sorting.
Regards, Munendra S N On Fri, Dec 6, 2019 at 3:12 PM Anuj Bhargava <anujb...@gmail.com> wrote: > When I sort desc on posting_id sort=posting_id%20desc, I get the following > result > "posting_id":"9999313" > "posting_id":"9999312" > "posting_id":"9999310" > > When I sort asc on posting_id sort=posting_id%20asc, I get the following > result > "posting_id":"10005343" > "posting_id":"10005349" > "posting_id":"10005359" > > *In descending the 8 figure numbers are not coming up first and in > ascending the 7 figure numbers are not coming up first.* > > Entry in schema is - > <field name="posting_id" type="string" indexed="true" stored="true" > required="true" docValues="true" multiValued="false"/> >