Added sorting and ranking to ideas