Add new selection_sorted on attribute view

issue3605
review2821002