sorting and tags working