now also weighted averages may be sorted