Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Sorting an object based on one field.

From: sunandadh:aol at: 13-Jan-2002 3:37

Hi Tom,
> /compare is your friend > > just somrthing like > > sort/compare object-list func[a b][a/path-to-field <= b/path-to-field] > > should be fine
Thank you. I should have done what Louis did and ask the list before rolling my own. Reinventing the wheel isn't always a bad thing, but in this case my wheel was squarer than the available product. Which is a good cue for me to step on my soap (not SOAP) box and mention something that's been annoying me for months. Handy hints and tips and "how tos?" like this pop up regularly on this list (that's one of it's main strengths?) and then disappear into the archive forever. Of course they could be found by someone doing a determined and exhaustive search. But how many postings containing "sort" would you have to read to find this tip? How is anyone starting Rebol next week ever going to stumble across Volver's brilliant vv? It's not a new suggestion (I know, cos I've made it twice before, though not on this list) that somewhere we have a "Handy hints" page that preserves and showcases all the small simple "tricks" that give Rebol such depth. Sunanda.