[ [ ... ] compare invert-comparison ] sort => [ ... ] inv-sort-with
parent
7c5ef08aab
commit
2a60451107
|
@ -83,7 +83,7 @@ M: comment entity-url
|
||||||
>>comments ;
|
>>comments ;
|
||||||
|
|
||||||
: reverse-chronological-order ( seq -- sorted )
|
: reverse-chronological-order ( seq -- sorted )
|
||||||
[ [ date>> ] compare invert-comparison ] sort ;
|
[ date>> ] inv-sort-with ;
|
||||||
|
|
||||||
: validate-author ( -- )
|
: validate-author ( -- )
|
||||||
{ { "author" [ v-username ] } } validate-params ;
|
{ { "author" [ v-username ] } } validate-params ;
|
||||||
|
|
|
@ -60,7 +60,7 @@ posting "POSTINGS"
|
||||||
|
|
||||||
: postings ( -- seq )
|
: postings ( -- seq )
|
||||||
posting new select-tuples
|
posting new select-tuples
|
||||||
[ [ date>> ] compare invert-comparison ] sort ;
|
[ date>> ] inv-sort-with ;
|
||||||
|
|
||||||
: <edit-blogroll-action> ( -- action )
|
: <edit-blogroll-action> ( -- action )
|
||||||
<page-action>
|
<page-action>
|
||||||
|
@ -99,7 +99,7 @@ posting "POSTINGS"
|
||||||
[ '[ _ <posting> ] map ] 2map concat ;
|
[ '[ _ <posting> ] map ] 2map concat ;
|
||||||
|
|
||||||
: sort-entries ( entries -- entries' )
|
: sort-entries ( entries -- entries' )
|
||||||
[ [ date>> ] compare invert-comparison ] sort ;
|
[ date>> ] inv-sort-with ;
|
||||||
|
|
||||||
: update-cached-postings ( -- )
|
: update-cached-postings ( -- )
|
||||||
blogroll fetch-blogroll sort-entries 8 short head [
|
blogroll fetch-blogroll sort-entries 8 short head [
|
||||||
|
|
|
@ -66,7 +66,7 @@ M: revision feed-entry-date date>> ;
|
||||||
M: revision feed-entry-url id>> revision-url ;
|
M: revision feed-entry-url id>> revision-url ;
|
||||||
|
|
||||||
: reverse-chronological-order ( seq -- sorted )
|
: reverse-chronological-order ( seq -- sorted )
|
||||||
[ [ date>> ] compare invert-comparison ] sort ;
|
[ date>> ] inv-sort-with ;
|
||||||
|
|
||||||
: <revision> ( id -- revision )
|
: <revision> ( id -- revision )
|
||||||
revision new swap >>id ;
|
revision new swap >>id ;
|
||||||
|
|
Loading…
Reference in New Issue