Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

how to sort on DB array column?

I know we could sort REST response by using sort but when I try to provide array column name it doesnt sort.

I have a array column(history) in a table and I want to sort based on createDt key of history array column.

"history":[
{
"fromId":"5516895196",
"createDt":"2013-12-04"
}

when I enter in REST Service -history.createDt the result is not sorted. Please advise?

sort - Image

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to sort on DB array column?

Just to clarify, you are trying to sort based on a value inside an array?

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

how to sort on DB array column?

yes

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

how to sort on DB array column?

Any update Max?

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

how to sort on DB array column?

I need to check whether sorting works with an array. It works fine when you specify a value directly (not from an array)?

Kartik A
Posts: 0
Joined: Wed Nov 06, 2013 4:16 pm

how to sort on DB array column?

Mark, please provide ETA by when I could have a resolution for this problem. This is slowing down my development and I have hard deadlines.

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

how to sort on DB array column?

Hello -- the sort is works for the array the way you define it in the request parameter (we've tested). Is the service testing returning some errors? Can you show the full response?

Return to “Issues”