Added sorting in status summary. Close #345.