                 _b = _cleanAlpha(b).toLowerCase()
 
                 if _a < _b
-                    1
+                    return 1
                 else if _a > _b
-                    -1
+                    return -1
                 else if _a is _b
-                    0
+                    return 0
 
             if direction is 'ascending' then values.sort _sortAsc else values.sort _sortDesc
 
         else if type is 'number'
             _sortAsc = (a, b) ->
-                parseFloat(a) - parseFloat(b)
+                return parseFloat(a) - parseFloat(b)
 
             _sortDesc = (a, b) ->
-                parseFloat(b) - parseFloat(a)
+                return parseFloat(b) - parseFloat(a)
 
             if direction is 'ascending' then values.sort _sortAsc else values.sort _sortDesc
 

            types = []

            _isDate = (value) ->
                if _patterns.monthDayYear.test(value) then true else false

            _isNumber = (value) ->
                if _patterns.number.test(value) then true else false

            _isAlpha = (value) ->
                if _patterns.alpha.test(value) then true else false

            _isTime = (value) ->
                if _patterns.time.test(value) then true else false

            $.each values, ->
                if _isDate.call self, @

            _sortAsc = (a, b) ->
                _a = new Date _patterns.monthDayYear.exec(a)
                _b = new Date _patterns.monthDayYear.exec(b)
                return _a - _b

            _sortDesc = (a, b) ->
                _a = new Date _patterns.monthDayYear.exec(a)
                _b = new Date _patterns.monthDayYear.exec(b)
                return _b - _a

            if direction is 'ascending' then values.sort _sortAsc else values.sort _sortDesc    

