Fix video sorting in API v2 (issue #1934)