mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	fix instance sort
This commit is contained in:
		
							parent
							
								
									df291b00d8
								
							
						
					
					
						commit
						6f9aa94e3a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -64,8 +64,8 @@ export default class extends Endpoint<typeof meta, typeof paramDef> {
 | 
			
		|||
				case '-followers': query.orderBy('instance.followersCount', 'ASC'); break;
 | 
			
		||||
				case '+caughtAt': query.orderBy('instance.caughtAt', 'DESC'); break;
 | 
			
		||||
				case '-caughtAt': query.orderBy('instance.caughtAt', 'ASC'); break;
 | 
			
		||||
				case '+latestRequestReceivedAt': query.orderBy('instance.latestRequestReceivedAt', 'DESC'); break;
 | 
			
		||||
				case '-latestRequestReceivedAt': query.orderBy('instance.latestRequestReceivedAt', 'ASC'); break;
 | 
			
		||||
				case '+latestRequestReceivedAt': query.orderBy('instance.latestRequestReceivedAt', 'DESC', 'NULLS LAST'); break;
 | 
			
		||||
				case '-latestRequestReceivedAt': query.orderBy('instance.latestRequestReceivedAt', 'ASC', 'NULLS FIRST'); break;
 | 
			
		||||
 | 
			
		||||
				default: query.orderBy('instance.id', 'DESC'); break;
 | 
			
		||||
			}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue