Bug fix for sorting questions