if (Spoutcraft.hasPermission("spout.plugin.sortinventory")) {
orderByAlphabet = new GenericButton("A-Z");
orderById = new GenericButton("Id");
orderByAlphabet.setTooltip("Will sort the inventory contents by their name");
orderById.setTooltip("Will sort the inventory contents by their id");
ScreenType type = ScreenUtil.getType(this);
if (type == ScreenType.PLAYER_INVENTORY) {
if (!this.mc.thePlayer.getActivePotionEffects().isEmpty()) {
orderByAlphabet.setGeometry((guiLeft+146), (guiTop+65), 27, 13);
orderById.setGeometry((guiLeft+176), (guiTop+65), 22, 13);