Fix sorting of users table

This commit is contained in:
AndyGrant committed 2018-06-23 19:13:07 -04:00
1 parent a85b34983b
commit 46c970d37d
1 file changed
+1 -1
+1 -1
View File
@@ -157,7 +157,7 @@ def index(request, page=0, pageLength=50, username=None, error=''):
def users(request):
# Build context dictionary for template
data = {'profiles' : Profile.objects.order_by('games')}
data = {'profiles' : Profile.objects.order_by('-games')}
return render(request, 'users.html', data)
def viewUser(request, username, page=0):