[BUGFIX] Fix wrong position on sorting inline records