     iPos = table.fnGetPosition @
     song = queue.remove iPos
     player.play song
+
+
+getDisplayData = (songInfo, song) ->
+  index = songInfo.index song
+  title = songInfo.title song
+  album = songInfo.album song
+  artist = songInfo.artist song
+  return [index, title, album, artist]
 
 
 class DataFilteringView

      start = Math.max 0, end - displayLength
    visibleIndexes = @visible[start...end]
    for index in visibleIndexes
      title = @songInfo.title @data[index]
      album = @songInfo.album @data[index]
      artist = @songInfo.artist @data[index]
      resultData.push [index, title, album, artist]
    result =
      totalRecords: @data.length
      totalDisplayRecords: @visible.length

    durationElement.text viewTimeString 0


QueueView = (queueButton, queueElement, queue, player, playlistElement, viewport, songInfo) ->
  columns = PLAYLIST_BASIC_COLUMNS

  queueData = []
  for song in queue.fullQueue()
    queueData.push getDisplayData songInfo, song

  table = queueElement.dataTable
    sScrollY: "#{viewport.playlistHeight}px"
