                         0
 
                 values = if direction is 'ascending' then values.sort _sortAsc else values.sort _sortDesc
-                console.log values
 
             else if type is 'integer'
 
                 _sortAsc = (a, b) ->
-                    parseInt a, 10 - parseInt b, 10
+                    parseInt(a, 10) - parseInt(b, 10)
 
                 _sortDesc = (a, b) ->
-                    parseInt b, 10 - parseInt a, 10
+                    parseInt(b, 10) - parseInt(a, 10)
 
                 values = if direction is 'ascending' then values.sort _sortAsc else values.sort _sortDesc
-                console.log values
 
             else if type is 'number'
 
                 _sortAsc = (a, b) ->
-                    parseFloat a - parseFloat b
+                    parseFloat(a) - parseFloat(b)
 
                 _sortDesc = (a, b) ->
-                    parseFloat b - parseFloat a
+                    parseFloat(b) - parseFloat(a)
 
                 values = if direction is 'ascending' then values.sort _sortAsc else values.sort _sortDesc
-                console.log values
 
             else if type is 'date'
 

                        time24 = "#{hour + 12}:#{minutes}"

                _sortAsc = (a, b) ->
                    a = _parseTime a
                    b = _parseTime b
                    a = new Date "04-22-2014 #{a}"
                    b = new Date "04-22-2014 #{b}"
                    a - b

                _sortDesc = (a, b) ->
                    a = _parseTime a
                    b = _parseTime b
                    a = new Date "04-22-2014 #{a}"
                    b = new Date "04-22-2014 #{b}"
                    b - a

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

    new DrmSort()


                    b - a

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

            else if type is 'time'
                _parseTime = (time) ->
