sort by total ab: improvements