add basic sorting behaviour