Skip to content

Commit

Permalink
Set up sorting by name for the global device store
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed May 4, 2016
1 parent b918d29 commit c5e71c1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/traccar/web/client/Application.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

import com.google.gwt.i18n.client.TimeZoneInfo;
import com.sencha.gxt.data.shared.ListStore;
import com.sencha.gxt.data.shared.SortDir;
import com.sencha.gxt.data.shared.Store;
import com.sencha.gxt.widget.core.client.form.CheckBox;
import com.sencha.gxt.widget.core.client.form.ComboBox;
import com.sencha.gxt.widget.core.client.form.NumberField;
Expand Down Expand Up @@ -64,6 +66,8 @@ public static DataServiceAsync getDataService() {
public Application() {
DeviceProperties deviceProperties = GWT.create(DeviceProperties.class);
final ListStore<Device> deviceStore = new ListStore<>(deviceProperties.id());
deviceStore.clearSortInfo();
deviceStore.addSortInfo(new Store.StoreSortInfo<>(deviceProperties.name(), SortDir.ASC));
final GroupStore groupStore = new GroupStore();

settingsController = new SettingsController(userSettingsHandler);
Expand Down

0 comments on commit c5e71c1

Please sign in to comment.