added comment form plus number of comments.
[~kgodey/maayanwich.git] / views.py
index 309aa2f..39ec141 100644 (file)
--- a/views.py
+++ b/views.py
@@ -70,7 +70,7 @@ def add_ingredient(request):
 
 def all_sandwich(request):
        try:
-               allsandwiches = Sandwich.objects.all()
+               allsandwiches = Sandwich.objects.order_by('-date_made')
        except Sandwich.DoesNotExist:
                raise Http404
        return render_to_response('allsandwiches.html', {'allsandwiches': allsandwiches,}, context_instance=RequestContext(request))