2.2.9.9 Salary Sorting in Team Roster

Any questions related to version 2 or version 3 should be ask here. / Toutes les questions sur la version 2 ou la version 3 devraient être demandées ici.
Post Reply
frank86
The Accomplished One / L'Accompli
Posts: 131
Joined: Sun Jan 05, 2014 6:45 pm

2.2.9.9 Salary Sorting in Team Roster

Post by frank86 »

In team Roster when you try the sort the column of salary. It is not working properly by order Ascending or descending
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14798
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by SimonT »

Hi.

I'm aware of this issue but there is not much I can about it. Since the STHS use Windows Local Currency Setting, there is alot of possible currency format, it's hard to sort them. :(

I'll try to see what I can do in the futur (In my To Do List).
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English Manual - Manuel Français
JimToupet
STHS Dynamic Website Contributor
Posts: 363
Joined: Wed Jul 02, 2014 10:55 am

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by JimToupet »

Simon, in your ProTeamRoster page change :

Code: Select all

$(function(){$("table").basictablesorter()});
for :

Code: Select all

    $.tablesorter.addParser({ 
        id: 'currency', 
        is: function(s) { 
            return false; 
        }, 
        format: function(s) { 
			return s.replace(/[,$£€]/g,'').replace(/\s+/g, '');
		}, 
        type: 'numeric' 
    }); 
     
    $(function() { 
        $("table").tablesorter({ 
            headers: { 
                29: { 
                    sorter:'currency' 
                } 
            } 
        }); 
    });
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14798
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by SimonT »

Ça fonctionne par contre, ça prend 3 secondes de plus pour loader la page de mon coté. J'utilise le BasicTableSorter pour ça. Quand j'utilise un Table Sorter plus évolué, ça prend toujours trop de temps pour processer toutes les données que j'ai dans tout les pages. :(
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English Manual - Manuel Français
JimToupet
STHS Dynamic Website Contributor
Posts: 363
Joined: Wed Jul 02, 2014 10:55 am

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by JimToupet »

J'avais remarqué mais je ne ne suis pas penché sur la performance. Je pourrais faire un tour de roue pour trouver un moyen d'améliorer la performance.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14798
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by SimonT »

Pour ton information, j'utilise 2 types de Table Sorter.

Fork bien meilleur mais qui demande plus de processing -- http://mottie.github.io/tablesorter/docs/
Original -- http://tablesorter.com/docs/

Tu peux regarder la Fork aussi si tu veux t'amusé mais même le concepteur de la Fork m'a dit que j'avais juste trop de table pour ça soit performant. :(
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English Manual - Manuel Français
JimToupet
STHS Dynamic Website Contributor
Posts: 363
Joined: Wed Jul 02, 2014 10:55 am

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by JimToupet »

C'est sur qu'habituellement ces outils sont fait pour une ou deux tables par page. Je te reviens avec ce que j'aurai trouvé.
JimToupet
STHS Dynamic Website Contributor
Posts: 363
Joined: Wed Jul 02, 2014 10:55 am

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by JimToupet »

Nothing good in my tests. The only way to have advanced sorting would be to have one page per team.
--
Rien de probant, dans le meilleur des mondes il faudrait créer une page par équipe pour permettre le tri avancé des colonnes.
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14798
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by SimonT »

You have the same conclusion that me. Maybe one day with a future PHP webpage then.
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English Manual - Manuel Français
SimonT
STHS Owner / Propriétaire du STHS
Posts: 14798
Joined: Sat Oct 08, 2005 4:18 pm
Location: Montreal, Canada
Contact:

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by SimonT »

For those keeping up with this topic, this issue will be fix in 2.3.1. ;)
-SimonT
Forum Administrator / Administrateur du Forum
STHS Owner / Propriètaire du STHS
English Manual - Manuel Français
frank86
The Accomplished One / L'Accompli
Posts: 131
Joined: Sun Jan 05, 2014 6:45 pm

Re: 2.2.9.9 Salary Sorting in Team Roster

Post by frank86 »

SimonT wrote:For those keeping up with this topic, this issue will be fix in 2.3.1. ;)

2.3.1 looks to have lots of interesting add-on ;)
Post Reply