Show More
@@ -121,9 +121,9 b' class AdminUsersView(BaseAppView):' | |||
|
121 | 121 | |
|
122 | 122 | sort_col = getattr(User, order_by, None) |
|
123 | 123 | if sort_col and order_dir == 'asc': |
|
124 | base_q = base_q.order_by(sort_col.asc()) | |
|
124 | base_q = base_q.order_by(sort_col.asc().nullslast()) | |
|
125 | 125 | elif sort_col: |
|
126 | base_q = base_q.order_by(sort_col.desc()) | |
|
126 | base_q = base_q.order_by(sort_col.desc().nullslast()) | |
|
127 | 127 | |
|
128 | 128 | base_q = base_q.offset(start).limit(limit) |
|
129 | 129 | users_list = base_q.all() |
General Comments 0
You need to be logged in to leave comments.
Login now