     func favPlaylist() {
         Logger.sendUIActionEvent(self, action: "favPlaylist", label: "")
         showSelectPlaylistViewController(playlist.getTracks())
+    }
+
+    func reorder() {
+        tableView.setEditing(!tableView.editing, animated: true)
     }
 
     func showSelectPlaylistViewController(tracks: [Track]) {

        }
    }

    override func tableView(tableView: UITableView, canEditRowAtIndexPath indexPath: NSIndexPath) -> Bool {
        return true
    }


                                                        style: UIBarButtonItemStyle.Plain,
                                                       target: self,
                                                       action: #selector(TrackTableViewController.favPlaylist))
        let reorderButton             = UIBarButtonItem(image: UIImage(named: "edit"),
                                                        style: UIBarButtonItemStyle.Plain,
                                                       target: self,
                                                       action: #selector(TrackTableViewController.reorder))
        navigationItem.rightBarButtonItems  = [showFavListButton]
        if playlistType != .Playing {
            navigationItem.rightBarButtonItems?.append(favPlaylistButton)
        }
        if playlistType == .Favorite {
            navigationItem.rightBarButtonItems?.append(reorderButton)
        }
    }

