{"action":"opened","issue":{"url":"https://api.github.com/repos/SilverElixir/upAndRunningWithJava/issues/1","labels_url":"https://api.github.com/repos/SilverElixir/upAndRunningWithJava/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/SilverElixir/upAndRunningWithJava/issues/1/comments","events_url":"https://api.github.com/repos/SilverElixir/upAndRunningWithJava/issues/1/events","html_url":"https://github.com/SilverElixir/upAndRunningWithJava/issues/1","id":117206016,"number":1,"title":"EmployeesByAvgSalaryDesc","user":{"login":"RnSn","id":4605193,"avatar_url":"https://avatars.githubusercontent.com/u/4605193?v=3","gravatar_id":"","url":"https://api.github.com/users/RnSn","html_url":"https://github.com/RnSn","followers_url":"https://api.github.com/users/RnSn/followers","following_url":"https://api.github.com/users/RnSn/following{/other_user}","gists_url":"https://api.github.com/users/RnSn/gists{/gist_id}","starred_url":"https://api.github.com/users/RnSn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RnSn/subscriptions","organizations_url":"https://api.github.com/users/RnSn/orgs","repos_url":"https://api.github.com/users/RnSn/repos","events_url":"https://api.github.com/users/RnSn/events{/privacy}","received_events_url":"https://api.github.com/users/RnSn/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-16T20:01:48Z","updated_at":"2015-11-16T20:01:48Z","closed_at":null,"body":"You should leverage the fact that both Double & String implement Comparable.\r\nSo, in your \r\n```java\r\nint compare(Worker w1, Worker w2)\r\n```\r\nyou should first compare salary using ```Double.compare()``` method. \r\nIf result is zero, then use ```String.compare()```.\r\nThe task says the comparison should be in descending order, so just multiply the result by -1 and you'll get desc order. "}}