cancel
Showing results for 
Search instead for 
Did you mean: 

REST Services sorts ID as String

bobfleischman
Champ in-the-making
Champ in-the-making
I have been trying to use the REST service with the following URL

history/historic-process-instances?size=200&order=desc&includeProcessVariables=true

and since our installation is new the ids are lower numbers and have just crossed into 4 digits. The IDs sort as a string not an integer and therefore 99 comes before 100 when we sort descending, and 100 before 99 when we sort ascending.

Any clues how we can work around this? We are trying to keep a list of completed processes for our appliacation. The same problem occurs when we try to get historic task information using the REST service.

Thanks

Bob
1 REPLY 1

trademak
Star Contributor
Star Contributor
You could use the start time for the same ordering.

Best regards,