fix sorting algorithm
auto hostname
REST API