It works for names minus sorting and very slow