code review
default sort device by code