added naive online user sorting