mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-10-31 13:01:31 +08:00 
			
		
		
		
	sort children during export to ensure a more stable format
This commit is contained in:
		
							parent
							
								
									f704cacdee
								
							
						
					
					
						commit
						cb523faaad
					
				| @ -181,6 +181,8 @@ async function exportToZip(taskContext, branch, format, res, setHeaders = true) | |||||||
| 
 | 
 | ||||||
|         noteIdToMeta[note.noteId] = meta; |         noteIdToMeta[note.noteId] = meta; | ||||||
| 
 | 
 | ||||||
|  |         // sort children for having a stable / reproducible export format
 | ||||||
|  |         note.sortChildren(); | ||||||
|         const childBranches = note.getChildBranches() |         const childBranches = note.getChildBranches() | ||||||
|             .filter(branch => branch.noteId !== '_hidden'); |             .filter(branch => branch.noteId !== '_hidden'); | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Sylvain Pasche
						Sylvain Pasche