mirror of
				https://github.com/Alamantus/Lexiconga.git
				synced 2025-11-04 10:17:01 +01:00 
			
		
		
		
	Fixed sorting
This commit is contained in:
		
							parent
							
								
									92b047893d
								
							
						
					
					
						commit
						d3f296e560
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -358,7 +358,7 @@ function LoadDictionary() {
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    HideSettingsWhenComplete();
 | 
					    HideSettingsWhenComplete();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    ShowDictionary("");
 | 
					    ShowDictionary();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
    SetPartsOfSpeech();
 | 
					    SetPartsOfSpeech();
 | 
				
			||||||
    
 | 
					    
 | 
				
			||||||
| 
						 | 
					@ -453,7 +453,7 @@ function dynamicSort(property) {
 | 
				
			||||||
        property = property.substr(1);
 | 
					        property = property.substr(1);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
    return function (a, b) {
 | 
					    return function (a, b) {
 | 
				
			||||||
        var result = (a[property] < b[property]) ? -1 : (a[property] > b[property]) ? 1 : 0;
 | 
					        var result = (a[property].toLowerCase() < b[property].toLowerCase()) ? -1 : (a[property].toLowerCase() > b[property].toLowerCase()) ? 1 : 0;
 | 
				
			||||||
        return result * sortOrder;
 | 
					        return result * sortOrder;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue