@@ -83,7 +83,7 module SortHelper | |||
|
83 | 83 | # Use this to sort the controller's table items collection. |
|
84 | 84 | # |
|
85 | 85 | def sort_clause() |
|
86 | session[@sort_name][:key] + ' ' + session[@sort_name][:order] | |
|
86 | session[@sort_name][:key] + ' ' + (session[@sort_name][:order] || 'ASC') | |
|
87 | 87 | end |
|
88 | 88 | |
|
89 | 89 | # Returns a link which sorts by the named column. |
General Comments 0
You need to be logged in to leave comments.
Login now