File sorting (client side)