hi,

Michiel Meeuwissen wrote:

Ted Vinke <[EMAIL PROTECTED]> wrote:
I need to select a series of persons who have been born in this month and
show them ordered by their birthday.

It is a hard problem, and one of the reasons why we need a date-field.


[snip Michiel's code]

You can also use a custom comparator can't you?

This is an example (yeah I know, not good to put java in page):

<%!
static public class MyComparator implements java.util.Comparator {
  public int compare(Object node1,Object node2) {
    // put sort stuff here
  }
}
%>

Then you can do:

<mm:listnodes type="teams" comparator="MyComparator"  >
</mm:listnodes>

I imagine you can come up with your own comparator that does indeed sort by month.


cheers,

  Simon




Reply via email to