update styles
add basic sorting algorithm