From c15b25b888771296d6d5e69c7f678f4c7aed6a31 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Sun, 25 Sep 2011 16:49:45 +0200 Subject: [PATCH] order videos --- pandora/item/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/item/views.py b/pandora/item/views.py index 37f5b74a..e4313cad 100644 --- a/pandora/item/views.py +++ b/pandora/item/views.py @@ -667,8 +667,8 @@ def video(request, id, resolution, format, index=None): index = int(index) - 1 else: index = 0 - streams= Stream.objects.filter(file__item__itemId=item.itemId, - resolution=resolution, format=format) + streams = Stream.objects.filter(file__item__itemId=item.itemId, + resolution=resolution, format=format).order_by('file__part') if index > streams.count(): raise Http404 stream = streams[index]