Fixed an issue where custom sort values of "0" were not being used.

The conditional was evaluating values of "0" as "false" and falling back to the element text.