complete sorting and bootstrap UI