Fixed number_aware_alphabetical_cmp

In Python 3, comparison of `float` and `str` raises TypeError. In
this commit, I added conditionals for checking types.