Surface orientation in ionic liquids