/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package real.estate.dao.impl;

import real.estate.dao.*;

/**
 *
 *
 */
public class SortedList {

    public void sort(int list[]) {
        for (int i = list.length - 1; i > 1; i--) {

            for (int j = 0; j < i; j++) {

                if (list[j] > list[j + 1]) {

                    swap(j, j + 1, list);

                }

            }

        }

    }

    public void swap(int i, int j, int list[]) {
        int temp = 0;
        list[temp] = list[j + 1];
        list[j + 1] = list[i];
        list[i] = list[temp];

    }

}

@@ -274,17 +274,209 @@
 tedList 
-%7B
+extends List %7B%0A%0A    // Instantiates and returns a reference to an empty list object %0A    // with room for maxItems elements %0A    public SortedList(int maxItems) %7B%0A        super(maxItems);%0A    %7D
 %0A%0A    pu
@@ -915,10 +915,1009 @@
 %0A    %7D%0A%0A
+    @Override%0A    public boolean isThere(Listable item) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A        //Remove above line and implement the code%0A    %7D%0A%0A    @Override%0A    public Listable retrieve(Listable item) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A        //Remove above line and implement the code%0A    %7D%0A%0A    @Override%0A    public void insert(Listable item) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A        //Remove above line and implement the code%0A    %7D%0A%0A    @Override%0A    public void delete(Listable item) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A        //Remove above line and implement the code%0A    %7D%0A%0A    @Override%0A    public int compareTo(Listable other) %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A%0A    %7D%0A%0A    @Override%0A    public Listable copy() %7B%0A        throw new UnsupportedOperationException(%22Not supported yet.%22);%0A    %7D%0A%0A
 %7D%0A

Add constructor to SortedList