You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: navigation_component.rb
    path of file: ./repos/consist/docs/src/_components
    
    the code of the file until where you have to start completion: class NavigationComponent < Bridgetown::Component
  def initialize(resources, recipes
    
  def grouped_and_sorted_documentation_resources
    group_by(@resources, "section")
      .sort_by { |resources| documentation_sections_order.find_index(resources["name"]) }
  end

  private

  def documentation_sections_order
    %w[Introduction Consistfile Recipes]
  end
end