Fixed IP Address Sorting

Change-Id: Ibd70f557b9a5385fde4cde84531665c49060aeb3