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