Add sort and star functionality