I need to select like 10 or so values in the closest boundary to the user.
For example:
Imaging I have a boundary of 4.
Now, if the user is rank 1st it should return all users 2nd, 3rd, 4th and 5th. (None above so it returns the lower 4)
If the user is rank 4th it should return 1st, 2nd, 3rd and 5th (Gets all highest values first then starts with the lower values).
If the users rank is 120th it should return 116th, 117th, 118th and 119th (It can return 4 high values with no problem).
Is there a function or group of functions to do this?