fixing the order of descriptor elements