X-Git-Url: https://git.plutz.net/?a=blobdiff_plain;f=cards%2Fwidgets.sh;h=c0ecfb09e5bf78019189325443c320382ab57bca;hb=245152b9bb6939b087fc622336bfa0dd74149bb2;hp=ac04d9f74066638940ad93fbe2f8f5509f78ee87;hpb=8536e089bb0d5f7af527aacc63d435e45b7e6770;p=lobster diff --git a/cards/widgets.sh b/cards/widgets.sh index ac04d9f..c0ecfb0 100755 --- a/cards/widgets.sh +++ b/cards/widgets.sh @@ -143,9 +143,10 @@ card_item(){ | sort \ | sed -E ':X;N;$!bX; s;^[\n ]+;;; s;[\n ]+$;;; s;(\n.*\n|\n); - ;;' )" - printf '[a .item .therapy href="/therapies/%s" . %s %s]' \ - "${tpy%.*}/${tpy#*.}" "$(l10n therapy)" "$(HTML "${tpydates:--}")" - done |sort -r + printf '[a .item .therapy href="/therapies/%s" . %s] ' \ + "${tpy%.*}/${tpy#*.}" "$(HTML "${tpydates:--}")" + done |sort -n + printf '[a .item .therapy href="/therapies/%s/new" . +]' "${client}" ;; *)[ $cnt -gt 0 ] && printf '[h3 %s]' "$(l10n "$item")" shy="$(printf '\302\255')"