Sorting of Database Query - not working

I’ve got to be making a stupid mistake.

But, I cannot get my database query to sort by “Budget Name” (BudgetCat_Name).

This looks right to me - what am I missing? I’ve gone insane or something. :joy:

image

That looks correct to me. But, it never outputs the data alphabetically. Only sorts by BudgetCat_ID.
You can see a screenshot of the preview here:

I found the problem.
In the code itself there was a \n line break in the sort field. No idea how that could have gotten there as I wasn’t manually coding it.

But, it’s fixed now.

If anyone encounters something similar, check the code itself.

2 Likes