BAQ report sorting incorrectly

I found Exactly What I wanted to do from another post. Mentioning it here so someone else might find it helpful.