made sorting case-insensitive and fixed menu for small devices