don't wait for setState before sorting, mutate state directly