migrated front-end sorting variables to new layout