How to get the selected data in the same priority list?