[Vala] Patch to add support for array sort, reverse and shuffle operations



Hi,

I have implemented sort(), reverse() and shuffle() operations for build in arrays. The sort operation supports both ascending and descending order and all operations should work in both gobject and posix profiles.

https://bugzilla.gnome.org/show_bug.cgi?id=530450

Arrays containing object types are also sortable if the class has a comparison method 'int compare(this)'. Comments wellcome!

Regards,
J-P

__
Saunalahdelta mullistava uutuus Nokia N97 ja kaiken kattava TotaaliMAX nyt ennakkomyynnissä uskomattoman 
edullisesti! Paketissa puhelut ja viestit (3000 min/kpl/kk), huippunopea mobiililaajakaista sekä Nokia N97 
yhdellä kk-maksulla vain 59,95 e/kk (24 kk sopimus).
Katso http://saunalahti.fi/totaalimax




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]