hackish way to overcome an issue with sorting by secondary column that doesnt work for me