(orderBy string)
| 129 | } |
| 130 | |
| 131 | func validSearchOrderBy(orderBy string) bool { |
| 132 | switch orderBy { |
| 133 | case "", "relevance", "modified": |
| 134 | return true |
| 135 | default: |
| 136 | return false |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | func searchOrderBy(orderBy string) *files.SearchOrderBy { |
| 141 | switch orderBy { |
no outgoing calls
no test coverage detected