added sorting to probability lists