Fixed #6. Fixed sort functions after first infinite request.