I was able to get the sort the way I wanted by using composite column.
Code:
program:
test(field('#columnname'), 'Yes', '')
First I sorted A-Z by the column, then I sorted by the composite column so that all the Yeses were on top. A bit kludgey but it works.