fixing transient sorting