make sort happen at resize time