WIP, adding in stack rank ordering
sort by stack rank