Update sorting fix