Is there any way to sort virtual field?


i need to count user logins from login table by user id.
i make virtual field in user that count and show, how i can make it sort on table view ?


php sort array functions or manually with foreach

i want to sort it on the view table.