summaryrefslogtreecommitdiff
path: root/tbc
diff options
context:
space:
mode:
Diffstat (limited to 'tbc')
-rwxr-xr-xtbc/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tbc/views.py b/tbc/views.py
index 47637ad..fc64a8d 100755
--- a/tbc/views.py
+++ b/tbc/views.py
@@ -451,7 +451,7 @@ def BookDetails(request, book_id=None):
else:
context['user'] = request.user
book = Book.objects.get(id=book_id)
- chapters = Chapters.objects.filter(book=book).order_by('name')
+ chapters = Chapters.objects.filter(book=book).order_by('pk')
images = ScreenShots.objects.filter(book=book)
context['chapters'] = chapters
context['images'] = images