passy / ctlmngr

A manager for custom timelines
MIT License
21 stars 2 forks source link

Fix sorting handler #28

Closed mathiasbynens closed 10 years ago

mathiasbynens commented 10 years ago

The compare(a, b) function passed to Array#sort expects 0 if both elements are equal, less than 0 if a should come first, and greater than 0 if b should come first.

Previously, values less than 0 were never returned, causing the sorting to be wonky.

mathiasbynens commented 10 years ago

deploy plz

passy commented 10 years ago

Will do later today. I need to fix the build system so I can do this automatically. Right now it involves some nasty manual steps. :/

passy commented 10 years ago

Deployed! (I hope I've done this right ...)