human-sort is now { human<=> } sort-by

db4
Doug Coleman 2009-04-04 15:46:18 -05:00
parent 5fd9f446e7
commit 26dccb5b16
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: kernel accessors combinators.smart sorting.human
models colors.constants present
models colors.constants present sorting.slots
ui ui.gadgets.tables ui.gadgets.scrollers ;
IN: color-table
@ -29,7 +29,7 @@ M: color-renderer row-value
drop named-color ;
: <color-table> ( -- table )
named-colors human-sort <model>
named-colors { human<=> } sort-by <model>
color-renderer
<table>
5 >>gap
@ -40,4 +40,4 @@ M: color-renderer row-value
: color-table-demo ( -- )
[ <color-table> <scroller> "Colors" open-window ] with-ui ;
MAIN: color-table-demo
MAIN: color-table-demo