Sort both requests views by score then id
This commit is contained in:
		
							parent
							
								
									d55d1d1abe
								
							
						
					
					
						commit
						5e596167e4
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -1,5 +1,5 @@ | |||
| CREATE VIEW requests_vw AS | ||||
| 	SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC, id DESC; | ||||
| 	SELECT * FROM requests WHERE state = 'Requested' ORDER BY score DESC, id ASC; | ||||
| 
 | ||||
| CREATE VIEW requests_all_vw AS | ||||
| 	SELECT * FROM requests ORDER BY id DESC; | ||||
| 	SELECT * FROM requests ORDER BY score DESC, id ASC; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue