Fix #13819: .parent sort direction