       (rseq sorted-tracks))))
 
 (defn sorting-th [field caption]
-  [:th.sorting-th {:on-click #(update-sort-field! field)}
+  [:th.sorting-th {:title (str "Sort by " (lower-case caption))
+                   :on-click #(update-sort-field! field)}
    [:span caption]
    [:span.sorting-th-arrow (when (= field (@app-state :sort-field))
                           (if (@app-state :ascending)

(ns airhead-frontend.components
  (:require [clojure.string :refer [blank? split]]
            [reagent.core :as r]
            [airhead-frontend.state :refer [app-state update-state!]]
            [airhead-frontend.requests :as req]))


(defn playlist-add-button [track]
  [:button.pure-button.track-action
   {:title "Add to playlist"
    :on-click #(req/playlist-add! (:uuid track))}
   [:i.fa.fa-plus]])

(defn playlist-remove-button [track]
  [:button.pure-button.track-action
   {:title "Remove from playlist"
    :on-click #(req/playlist-remove! (:uuid track))}
   [:i.fa.fa-minus]])

(defn track-field [text]
