Archive of UserLand's first discussion group, started October 5, 1998.

Re: Why is sorting tables limited?

Author:André Radke
Posted:5/3/1999; 11:16:48 AM
Topic:Why is sorting tables limited?
Msg #:5561 (In response to 5560)
Prev/Next:5560 / 5562

The reason I prefer to store a real time value and not a heirarchical string representation of the date is that I need to do date math later on and don't want to incur the overhead of a lot of string to date conversions.

You could coerce the return value of clock.now () to a number, and coerce it back to a date:

local (adritem = @adrtable^.[number (clock.now ())]);
adritem^ = "This is a test";
msg (date (nameof (adritem^)));

I don't know of a way to switch between ascending and descending order.


There are responses to this message:


This page was archived on 6/13/2001; 4:49:43 PM.

© Copyright 1998-2001 UserLand Software, Inc.