added sorting by peak