Report Service::getTableAction order issues

1 reply [Last post]
Joined: 06/29/2010
Points: 3

Hey,

I've been having fun with the Kaltura API v3 in general, but I'm running into a bit of a problem with the getTableAction from the report service. When I feed it what I feel would be a reasonable order_by (KalturaMediaOrderBy::PLAYS_DESC or "-plays") it doesn't behave as I'd expect it to. In fact, feeding it most any OrderBy enum seems to have no impact on the order coming out of the data. The KMC seems to be capable of producing ordered reports though. I'd like to avoid needing to order it on my end if at all possible though.

Thanks for any help!

Patrick Robertson

Joined: 06/29/2010
Points: 3

What I think getTableAction is treating the "plays" or whatever numeric column that you'd like to order by as a string rather than a number as I ran into fairly similar ordering when I decided to control ordering in my rails plugin.

so an order by -plays will result in (56,54,5,33,3,21,2,1) instead of (56, 54, 33, 21, 5, 3, 2, 1)