added sorting spec