changed signal sorting direction