That occurs (most of the time) when you try to sort before the roster page has fully loaded.
Which doesn't excuse it, of course. I think it's fair to call requiring a full load of the roster before sorting will work bad design. The frequency of reports about it bear that out.