FIXED: Bug in RCM node sorting

Added test to verify