September 16, 2004

Alphabetize Your Entries

If you want your Movable Type entries to be displayed in alphabetical order, substitute the <MTEntries> tag with:

<MTEntries sort_by="title" sort_order="ascend">

Use the same </MTEntries> closing tag.

MT Forum thread on case insensitive sorting - sort_by="title" is case sensitive by default in Movable Type. This thread shows David Phillips' tip on how to adjust the perl code so that your sort_by attribute can be case insensitive.

Has this tutorial been helpful? Please consider linking to Learning Movable Type at . Thanks!

Posted by Elise Bauer on September 16, 2004 to Beginner Tips
Comments(8) | Email to a friend | Printer-friendly version


If you would like to send a trackback
please use the following URL:


Thanks for cool suggestions, I love your blog. Will this "Alphabetical order" tutorial work with MT 2.661?

Stella - yes it works with all current versions of MT.

Thanks a lot Elise - it actually does! ;)

Hi Elise !

Thanks for a wonderful resource.

All the goodies that you keep posting, however, take my focus away from actually completing my website, and I end up implementing all your tips and variations. Here's the question really : Can i get a plain blog up and running and incorporate these changes as i go by and they will take over on all entries, not just "from now on" entries.

Thanks again !

EmVee - yes, it should work that way. When you make changes to the index, archive, and stylesheet templates and then rebuild your site, all of the pages reflect the changes. Good luck!

Unfortunately, you'll have to stick with beginning your entries with a capitol, or a lowercase letter. Doesn't work so well with mixed case.

Thanks for the help you have been in making things in MT understandable.

I am trying to alphabetze my entries in my Archives.php by adding your code to a set this set of tags.








however adding the string to either the <MTArchiveList> or the <MTEntries>
produces no result.
Any suggestions?

Thanks for your help

Soupenvy - Tweezerman David Phillips has a fix for the upper/lower case issue. I've added a link above to the tutorial.

Dave - the best place to ask for help like this is at the MT Support Forums.

Comments are now closed for this entry.

Email to a friend

Email this article to:

Your email address:

Message (optional):