Search is sorted by oldest first. This creates lots of usability faults. I searched the forum, but couldn't answer to my qestion:
How to order search results by newest first?


![]() |
| | LinkBack | Thread Tools | Display Modes |
| |||
| Search is sorted by oldest first. This creates lots of usability faults. I searched the forum, but couldn't answer to my qestion: How to order search results by newest first? |
| ||||
| I'm searching for the same thing. Anyone could help us? Thanks. |
| |||
| I'm also searching for the same thing. Tx |
| |||
| Tags also use the search module, so if you browse a Pligg site by tags, you're going to see a list of results with the the oldest ones displaying first which is confusing. Ideally, you'd have a toggle that allows the user to sort them in either direction, but I think the default should be newest first. |
| ||||
| I think (not tested) in the file /lib/search.php there is a variable line 16 on beta9.5 it's NULL per default you should set it to: link_date DESC because at line 110 there's: Quote:
forget what I wrote above, in fact you should not change anything on line 16 because that's the class declaration and it should be neutral. but on line 125 begins the search function which is where you can change for links and tags so for links you can add after line 150 something like $this->orderBy = "link_date DESC"; try this maybe it will work. for tags, it depends with what you want to order them, by alphabetical order or what.. but it begins not at line 150 but at line 133 Last edited by wwwSENSERELYcom; 05-26-2007 at 01:57 PM. |
| |||
| Unfortunately, it doesn't work. Any other suggestions? |
| |||
| I can pay or donate some cash if this problem is solved. |
| ||||
| Dev please help i require this too sorting results by oldest in a search isnt that user friendly.I have tried editing both the search.php files but cannot find the correct solution. Adam |
| ||||
| open /libs/search.php find PHP Code: PHP Code: |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Let the user sort the search results by different ways? | Niko | Questions and Comments | 0 | 11-17-2007 03:49 AM |
| Search Yields Too Many Results | mitchb13 | Questions and Comments | 0 | 04-02-2007 02:40 PM |
| tag and search results prob | chad90382 | Questions and Comments | 3 | 11-29-2006 08:08 PM |
| Search: No Results | konakevin | Questions and Comments | 21 | 07-06-2006 01:12 AM |