... | ... | @@ -17,7 +17,7 @@ if you're up to date with those tasks, you can extend the search function with s |
|
|
|
|
|
### sorting
|
|
|
|
|
|
your code for sorting would be something like
|
|
|
your code for sorting could be something like
|
|
|
|
|
|
```
|
|
|
switch ($sort) {
|
... | ... | @@ -30,3 +30,10 @@ switch ($sort) { |
|
|
default:
|
|
|
}
|
|
|
```
|
|
|
|
|
|
triggered by appropriate links in your search table, like
|
|
|
|
|
|
```
|
|
|
$content .= "<thead><tr><th><a href='?page=search&usersearch=$user_search&sort=1'>Title</a></th>";
|
|
|
```
|
|
|
|