started sorting method for applications