Implemented photo ordering functionality.