Fix bug: a sort_order of zero was treated as empty
Pep8 fixes
Merge pull request #18 from incuna/zero_sort_order

A sort_order of zero should be valid