Fix #13819: .parent sort direction
(cherry picked from commit 6a816ec95fd96d130a4af67a28873d9daa66a328)