Let's say we have 3 student ID's:
111
222
333
When you load the page, that's the order they appear. Then, student 222 scan's in, and it re-orders as:
222
111
333
Cool, b/c it sorts by scan-in vs scan-out! Now, student 222 is done for the day, so they scan out and the table re-orders as:
111
333
222
WAIT! What? This is nonsense! Now everything is out of order!