             self = @
 
             $('.drm-sort-list').on 'click', ->
-                values = self.getValues.call @
+                that = $ @
+                listId = that.data 'list'
+                list = $ "ul##{listId}"
+                values = self.getValues.call @, list
                 direction = $(@).data 'sort'
-                self.sortValues values, direction
+                self.renderSort values, direction, list
 
-        getValues: ->
+        getValues: (list) ->
             that = $ @
-            listId = that.data 'list'
-            list = $ "ul##{listId}"
             listItems = list.find 'li'
             values = []
 

                        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

                _sortDesc = (a, b) ->
                    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

                _sortDesc = (a, b) ->
                    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'


                    b - a

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

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