Added sorting and printing in model predictions