Service Portal sort by table column returns inconsistent orderSummaryOverview This article explain how Service Portal Table sorting works. There are two different behaviours regarding to sorting table column on Service Portal tables: Sort by a column belong to the table itselfSort by a column which is a Reference to another table (e.g. User) When sorting a column on a table will trigger a server (REST API) call to server to execute the sort operation as design. Consider below table example: Col1Col2User1SAMEITIL User2SAMEITIL User3SAMEITIL User4SAMEITIL User5SAMEITIL User Col1 and Col2 are the text of the table, User column is a reference column to another table call User. When sorting Col2, because all the data in Col2 are the same, change the orders won't affect the row orders. When sorting User, because it is a reference field server will need to combine two tables together then sort by the User table name field, therefore the returned row order will be inconsistence. This is an expected behaviour as the order from a joined table are depended on Database runtime behaviour. Version applicable: All Step to reproduce in OOB: Create table Under System Definition > Tables create new table e.g. u_test_tableAdd Col1 as StringAdd Col2 as StringAdd User as Reference from User tableSave the pageClick Layout List in Releated LinksEnsure those fields are in Selected section: Col1, Col2, UserSave and create records from below sample data. Create page Under Service Portal > Pages create a new page e.g. sp_exampleMark page as Public and SaveClick New under the Containers tab to create a new container.Click Column 1 then click the New button under Instances tab.Provide Title and select Data Table from URL Definition from the Widget tabClick submit To test Goto portal with path parameter https://<instance_name>.service-now.com/sp?id=sp_example&table=u_test_tableWhen change sort order on Col2 the records returned from API does not changeWhen change sort order by User (Reference table) returned order are random. Example outcome sort by reference column: