*I* would go database, and have a table with

CREATE TABLE blog (
id INT,
category VARCHAR(40),
date TIMESTAMP,
title VARCHAR(120),
text TEXT);

used with a "SELECT id,title FROM blob ORDER BY category, date,
title;"

but if you don't want to use mysql, I would assign each page a key
equal to the page name padded with zeros (or other character, like
'.') to a certain length, and then sort them by this key.

On Oct 31, 5:18 pm, Markus <[email protected]> wrote:
> I am using a simple blog script that names files this way:
>
> blog.a.2009.10.31.16.42.the_title
> blog.b.2009.10.31.14.50.another_title
>
> What I would like to do now is to sort by {p3}, {p4}, {p5} and so on
> (in that order). Sorting by creation date that is.
>
> The result would be blog.a entries and blog.b entries mixed in their
> order of creation. Any ideas? Should have some offset=2 option in
> action.search.
>
> Regards, Markus
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to