Update ui.py

sorting