use more intuitive sorting
This commit is contained in:
		
							parent
							
								
									58ee59ddbc
								
							
						
					
					
						commit
						7141c8e34e
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -50,7 +50,7 @@ export default {
 | 
			
		|||
  }),
 | 
			
		||||
  computed: {
 | 
			
		||||
    isValid: ({options, nameKey, internalName}) => options.some(e => e[nameKey] == internalName),
 | 
			
		||||
    sortedOptions: ({options, nameKey}) => options.sort((a, b) => a[nameKey] > b[nameKey]),
 | 
			
		||||
    sortedOptions: ({options, nameKey}) => options.sort((a, b) => a[nameKey].localeCompare(b[nameKey], 'en', { numeric: true })),
 | 
			
		||||
  },
 | 
			
		||||
  watch: {
 | 
			
		||||
    internalName(newValue, oldValue) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue