From 2f77862081be35fd5ef24c0bba21ae1cf931bb67 Mon Sep 17 00:00:00 2001 From: 6543 <6543@obermui.de> Date: Wed, 18 Sep 2019 21:17:41 +0200 Subject: [PATCH] add coments for documentation --- sortt.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sortt.js b/sortt.js index 31aee0a..cb8e942 100644 --- a/sortt.js +++ b/sortt.js @@ -66,12 +66,15 @@ function getArrow(normsort,revsort,isdefault){ //if sort is sorted as default add arrow tho this table header if (isdefault) return arrow_down; } else { - + //if sort arg is in url test if it corelates with colum header sort arguments if (url_sort === normsort) { + //the table is sorted with this header normal return arrow_down; } else if (url_sort === revsort) { + //the table is sorted with this header reverse return arrow_up; } else { + //the table is NOT sorted with this header return false; } }