| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -364,7 +364,13 @@ export default class ContactsView extends Vue { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    if (this.showGiveNumbers) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.loadGives(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.contacts = await db.contacts.orderBy("name").toArray(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // .orderBy("name") wouldn't retrieve any entries with a blank name | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    // .toCollection.sortBy("name") didn't sort in an order I understood | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    const baseContacts = await db.contacts.toArray(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    this.contacts = baseContacts.sort((a, b) => | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      (a.name || "").localeCompare(b.name || ""), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    if (this.contactEndorserUrl) { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      await this.addContactFromScan(this.contactEndorserUrl); | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -560,7 +566,13 @@ export default class ContactsView extends Vue { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					          -1, | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.contacts = await db.contacts.orderBy("name").toArray(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // .orderBy("name") wouldn't retrieve any entries with a blank name | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      // .toCollection.sortBy("name") didn't sort in an order I understood | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      const baseContacts = await db.contacts.toArray(); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      this.contacts = baseContacts.sort((a, b) => | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        (a.name || "").localeCompare(b.name || ""), | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      ); | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					      return; | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
				
				 | 
				
					
  |