sort events by a counter before firing them. adresses issue #94
renamed __counter to _counter
reverted to littlebitselectronic's fix (236b78f)
Merge branch 'issue#94'