Couldn't this switch and the one below be simply re-written as:
~~~~~
            this.order = (this.order == 'name_asc') ?
                'name_desc' :
                'name_asc';
~~~~~