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