fixed blog sorting on index.php
This commit is contained in:
		
							parent
							
								
									886e022d23
								
							
						
					
					
						commit
						79b2c582d1
					
				| @ -6,7 +6,7 @@ require_once __DIR__ . "/lib/_index.php"; | ||||
| 
 | ||||
| $blogs = Blog::getAll(); | ||||
| usort($blogs, function ($a, $b) { | ||||
|     return strtotime($b->date) - strtotime($a->date); | ||||
|     return strtotime($b->date()) - strtotime($a->date()); | ||||
| }); | ||||
| 
 | ||||
| ?><!DOCTYPE html>
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user