stock sorting backend
sort by various metrics after clicking on buttons