added sorting by variance