Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var relatorio = {
- ano: '',
- sigla: '',
- veiculo: '',
- qualis: '',
- fator: '',
- titulo: '',
- autores: ''
- };
- function ordena(vetor,attr) {
- vetor.sort(function(a,b) {
- return a.attr.localeCompare(b.attr);
- });
- }
- ordena(vetor,'ano');
- ordena(vetor,'titulo');
Add Comment
Please, Sign In to add comment