                               [:div.col-md-2 [:label (t :metabadge/Dateissued)] (if issued_on (date-from-unix-time (* 1000 issued_on)) "-")]
                               [:div.col-md-4 ]]]))) [:div.row.body] (->> required_badges
                                                                          (sort-by #(-> % :user_badge :issued_on) >)
-                                                                         (sort-by :received >)))]]]]))
+                                                                         (sort-by :received >)))]]]]]))
 
 (defn modal-navi [metabadge state]
   [:div.row.flip-table

       [:div  [:i.nav-icon {:class "fa fa-puzzle-piece fa-lg"}] (t :metabadge/Requiredbadges)  ]]]
     [:li.nav-item {:class  (if (or (nil? (:tab-no @state))(= 2 (:tab-no @state))) "active")}
      [:a.nav-link {:href "#" :on-click #(swap! state assoc :tab [view-content metabadge] :tab-no 2 )}
       [:div  [:i.nav-icon {:class "fa fa-info-circle fa-lg"}] (t :metabadge/info)]]]]]])

(defn metabadge-content [metabadge state]
  (let [{:keys [badge required_badges milestone? min_required]} metabadge

       [:img {:src (:image badge) :class (if-not is-complete? " opaque")}]]
      [:div.progress
       [:div.progress-bar.progress-bar-success
        {
          :role "progressbar"
          :aria-valuenow (str completed)
          :style {:width (str completed "%")}
