private ActionListener acaoCBOrdenacao() {
        ActionListener action = new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {
                int indice = cbOrdenacao.getSelectedIndex();
                ArrayList<Atracao> lstOrdenada;

                switch (indice) {
                    case 0:
                        lstOrdenada = atracoes.getAtracoesOrdenadas('n', opcao);
                        pnMostra.removeAll();
                        //carregaLstAtracoes(opcao);
                        criaArrays(lstOrdenada);
                        for (int i = 0; i < lstOrdenada.size(); i++) {
                            pnMostra.add(paineis.get(i));

                        }
                        pnMostra.revalidate();
                        pnMostra.repaint();
                        break;
                    case 1:
                        lstOrdenada = atracoes.getAtracoesOrdenadas('l', opcao);
                        pnMostra.removeAll();
                        //carregaLstAtracoes(opcao);
                        criaArrays(lstOrdenada);
                        for (int i = 0; i < lstOrdenada.size(); i++) {
                            pnMostra.add(paineis.get(i));

                        }
                        pnMostra.revalidate();
                        pnMostra.repaint();
                        break;
                    case 2:
                        lstOrdenada = atracoes.getAtracoesOrdenadas('v', opcao);
                        pnMostra.removeAll();
                        //carregaLstAtracoes(opcao);
                        criaArrays(lstOrdenada);
                        for (int i = 0; i < lstOrdenada.size(); i++) {
                            pnMostra.add(paineis.get(i));

                        }
                        pnMostra.revalidate();
                        pnMostra.repaint();
                        break;
                    case 3:
                        lstOrdenada = atracoes.getAtracoesOrdenadas('c', opcao);
                        pnMostra.removeAll();
                        //carregaLstAtracoes(opcao);
                        criaArrays(lstOrdenada);
                        for (int i = 0; i < lstOrdenada.size(); i++) {
                            pnMostra.add(paineis.get(i));

                        }
                        pnMostra.revalidate();
                        pnMostra.repaint();
                        break;
                    default:
                    //throw new AssertionError();
                }
            }
        };
        return action;
    }