Copyright © 2012 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
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
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)