mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-29 10:57:44 +09:00 
			
		
		
		
	Sort on repo size in admin panel (#1654)
* fix #1653 sort on repo size * fix minor mistake in en-us locale
This commit is contained in:
		
				
					committed by
					
						 Bo-Yi Wu
						Bo-Yi Wu
					
				
			
			
				
	
			
			
			
						parent
						
							3792867955
						
					
				
				
					commit
					87efc8c6d4
				
			| @@ -94,6 +94,10 @@ func RenderRepoSearch(ctx *context.Context, opts *RepoSearchOptions) { | ||||
| 		orderBy = "name DESC" | ||||
| 	case "alphabetically": | ||||
| 		orderBy = "name ASC" | ||||
| 	case "reversesize": | ||||
| 		orderBy = "size DESC" | ||||
| 	case "size": | ||||
| 		orderBy = "size ASC" | ||||
| 	default: | ||||
| 		orderBy = "created_unix DESC" | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user