Fixes .find() is undefined issue when sorting is enabled