shouldn't `currentSort` always be checked?  I've not seen a situation where this isn't the case.