I’m setting up a sermons list page for a church. They want to be able to sort the sermons by Bible book and chapter. I have a custom field for the Bible references. The problem is a typical sort looks like this:
Psalm 1:2
Psalm 110:1-3
Psalm 2:1-5
Obviously, EE is sorting everything numerically as it should. How can I get the sorting to sort by chapter correctly. I can’t very well add 0’s before the chapters without it looking odd. I don’t know if it’s a data entry issue or a different way to write the sorting code. Any help would be appreciated! Here’s my code:
{exp:weblog:entries orderby="sermontext" sort="asc" weblog="sermons" rdf="off" }
the results…
{/exp:weblog:entries}