mirror of
				https://github.com/Theodor-Springmann-Stiftung/musenalm.git
				synced 2025-10-31 02:05:32 +00:00 
			
		
		
		
	Lesekabinett & Startseite
This commit is contained in:
		| @@ -8,6 +8,8 @@ import ( | ||||
| 	"golang.org/x/text/language" | ||||
| ) | ||||
|  | ||||
| // INFO: Functions that implement sorting of which sqlite is not capable of. | ||||
|  | ||||
| func Sort_Series_Title(series []*Series) { | ||||
| 	collator := collate.New(language.German) | ||||
| 	slices.SortFunc(series, func(i, j *Series) int { | ||||
| @@ -55,3 +57,10 @@ func Sort_Contents_Numbering(contents []*Content) { | ||||
| 		return datatypes.CompareFloat(i.Numbering(), j.Numbering()) | ||||
| 	}) | ||||
| } | ||||
|  | ||||
| func Sort_Places_Name(places []*Place) { | ||||
| 	collator := collate.New(language.German) | ||||
| 	slices.SortFunc(places, func(i, j *Place) int { | ||||
| 		return collator.CompareString(i.Name(), j.Name()) | ||||
| 	}) | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Simon Martens
					Simon Martens