Hi Dale Dela Cruz
You can add a boolean attribute to the entity you are selecting from to set in it if the attribute is selected and change the boolean value on the select button click to set it true for the selected rows
On the page, you can sort the rows by that boolean descending.
Hope this solve the issue please recommend this as accepted answer if so
Thanks