diff --git a/django/contrib/databrowse/sites.py b/django/contrib/databrowse/sites.py
index 172ca52..13d44e9 100644
a
|
b
|
class DatabrowseSite(object):
|
122 | 122 | raise http.Http404('The requested databrowse page does not exist.') |
123 | 123 | |
124 | 124 | def index(self, request): |
125 | | m_list = [EasyModel(self, m) for m in self.registry.keys()] |
| 125 | # Sort by name, case insensitive. Python 2.4 compatible. |
| 126 | sorted_keys = [m for m in self.registry.keys()] |
| 127 | sorted_keys.sort(key = lambda x: x.__name__.upper()) |
| 128 | m_list = [EasyModel(self, m) for m in sorted_keys] |
126 | 129 | return render_to_response('databrowse/homepage.html', {'model_list': m_list, 'root_url': self.root_url}) |
127 | 130 | |
128 | 131 | def model_page(self, request, app_label, model_name, rest_of_url=None): |