We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 388ccc6 commit 914b1b7Copy full SHA for 914b1b7
src/odo.ts
@@ -67,12 +67,7 @@ export enum ContextType {
67
}
68
69
function compareNodes(a: OpenShiftObject, b: OpenShiftObject): number {
70
- if (!a.contextValue) return -1;
71
- if (!b.contextValue) return 1;
72
- const acontext = a.contextValue.includes('_') ? a.contextValue.substr(0, a.contextValue.indexOf('_')) : a.contextValue;
73
- const bcontext = b.contextValue.includes('_') ? b.contextValue.substr(0, b.contextValue.indexOf('_')) : b.contextValue;
74
- const t = acontext.localeCompare(bcontext);
75
- return t || a.label.localeCompare(b.label);
+ return a.label.localeCompare(b.label);
76
77
78
function insert(array: OpenShiftObject[], item: OpenShiftObject): OpenShiftObject {
0 commit comments