added basic sorting by label