use angular filter feature instead of js reverse function