Merge pull request #56 from altf4arnold/alphabetical-order

[FIX] Sorting the list of tld's in alphabetical order
This commit is contained in:
Arnold Dechamps 2024-05-18 02:00:07 +02:00 committed by GitHub
commit 04e19dd07c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,7 +12,7 @@ class Index(ListView):
Tutorial for this is on https://learndjango.com/tutorials/django-search-tutorial
When writing more optimized search things, might be good reference
"""
object_list = TLD.objects.all()
object_list = TLD.objects.all().order_by('tld')
return object_list