Murphy9904
Lt. Junior Grade
- Registriert
- Mai 2007
- Beiträge
- 344
Hi,
ich hab ne liste mit Zeug drinnen
nun will ich dass bestimmte Elemente an erster stelle sind
list.MovetoFront.where (a => a.Price < 10)
dass alle wo der Preis unter 10 ist als erstes kommen
restliche sortierung ist wurscht
ich hab das mit 2x AddRange gelöst aber das ist soviel Kopierter Code
geht das auch anders?
Danke schonmal
Murphy
ich hab ne liste mit Zeug drinnen
nun will ich dass bestimmte Elemente an erster stelle sind
list.MovetoFront.where (a => a.Price < 10)
dass alle wo der Preis unter 10 ist als erstes kommen
restliche sortierung ist wurscht
ich hab das mit 2x AddRange gelöst aber das ist soviel Kopierter Code
geht das auch anders?
Danke schonmal
Murphy