table sort plugin on pure JavaScript