February 14, 2004

Sort by ID with lastn

I wanted to sort thumbnail include at top of pho to show most recently added rather than by date, since I regularly back-date posts.

The first thing I tried was sticking sort_by="id". That didn't work for me, but word on the street is that's because I want a specific, non-default number of entries shown, so need my lastn. If you're good with the default, it should be fine for you.

Maddy pointed me to a very similar question (I'm working on those search skills), where I found Brenna Koch's solution.

Requirements
An installation of Movable Type running with a MySQL database
Installation of one Brad Choate plugin
- MTSQL

Code and instructions available as a text file.

Please refer to the forum topic if you have questions.

Example
include
included

Related
My question on MT Forums
Sort by most recent links

Posted by gwen at February 14, 2004 03:04 PM | TrackBack
Comments