getsortedspikes to get spikes from .kwik